﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EventReminder.Server
{
    public class Users
    {
        int _userid;
        string _firstname;
        string _lastname;
        string _useremail;
        string _usersessionid;
        string _username;
        string _password;

        public Users()
        {

        }

        public Users(int id, string fname, string lname, string email, string uid, string pswd)
        {
            _userid = id;
            _firstname = fname;
            _lastname = lname;
            _useremail = email;
            _username = uid;
            _password = pswd;
            
        }

        /*
        private string GetSession(string name)
        {
            string datavalue = "";
            Random rand = new Random();

            datavalue = name + rand.Next().ToString();

            return datavalue;
        }
        */
        public string UserPassword
        {
            get { return _password; }
            set { _password = value; }
        }

        public string UserName
        {
            get { return _username; }
            set { _username = value; }
        }

        public int GetUserID
        {
            get { return _userid; }
            set { _userid = value; }
        }

        public string FirstName
        {
            get { return _firstname; }
            set { _firstname = value; }
        }

        public string LastName
        {
            get { return _lastname; }
            set { _lastname = value; }
        }

        public string UserEmail
        {
            get { return _useremail; }
            set { _useremail = value; }
        }

        public string GetSessionID
        {
            get { return _usersessionid; }
            set { _usersessionid = value; }
        }
    }
}
